<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Document</title>
</head>
<body>

  <div id='app'>
    {{msg}}
    <home>
      <div slot="a2">
        <span>插入内容</span>
        <p>插入内容</p>
        <button>插入按钮</button>
      </div>
      <div slot="a1">插入的内容a1</div>
    </home>
  </div>

<template id="home">
  <div>
    <h2>插槽标题</h2>
    <slot name="a1"></slot>
    <p>插槽底部</p>
    <slot name="a2"></slot>
  </div>
</template>
<script src='https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.js'></script>
<script>
  const Home = {
    template: '#home'
  }
  Vue.component('Home', Home);
  const app = new Vue({
    el: '#app'
    ,data: {
      msg: 'Hello Vue'
    }
    ,methods: {

    }
  })
</script>
</body>
</html>